package com.sunwayworld.basemodule.basedata.purchase.resource;

import com.sunwayworld.framework.support.auditable.resource.GenericAuditableResource;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sunwayworld.basemodule.basedata.purchase.bean.LimsPurchaseBean;
import com.sunwayworld.framework.data.page.Page;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import com.sunwayworld.basemodule.basedata.purchase.bean.LimsPurchaseMaterialBean;
import com.sunwayworld.basemodule.basedata.purchase.service.LimsPurchaseService;
import com.sunwayworld.framework.support.base.resource.GenericResource;

@RequestMapping("/secure/basemodule/basedata/purchases")
public interface LimsPurchaseResource extends GenericResource<LimsPurchaseService, LimsPurchaseBean, Long> , GenericAuditableResource<LimsPurchaseService, LimsPurchaseBean, Long> {

    Page<LimsPurchaseMaterialBean> selectMaterialPaginationByPurchaseId(Long id, RestJsonWrapperBean wrapper);

    Long insertMaterial(Long id, RestJsonWrapperBean wrapper);

    void deleteMaterial(Long id, RestJsonWrapperBean wrapper);
}
